package com.runssnail.huafeiduo.api.response;

import com.runssnail.huafeiduo.api.domain.BaseDomain;

/**
 * Created by zhengwei on 2016/3/31.
 */
public abstract class Response  extends BaseDomain {

    private String status;

    private String error_code;

    private String error_msg;

    private String message;

    /**
     * 响应body
     */
    private String responseBody;

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public String getResponseBody() {
        return responseBody;
    }

    public void setResponseBody(String responseBody) {
        this.responseBody = responseBody;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    /**
     * 是否成功
     *
     * @return
     */
    public boolean isSuccess() {
        return "success".equals(this.status);
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
